Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Jun 21, 2025

WDYT @javiereguiluz ? :)

@@ -0,0 +1,48 @@
<?php

namespace EasyCorp\Bundle\EasyAdminBundle\Field\Style;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure in which namespace I should declare this class

@VincentLanglet VincentLanglet changed the title Introduce custom BadgeStyle [RFC] Introduce custom BadgeStyle Jun 21, 2025
return new self(['badge'], []);
}

public function withBgColor(string $backgroundColor, bool $autoTextContrast = true): self
Copy link
Contributor Author

@VincentLanglet VincentLanglet Jun 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if

  • we should disable autoTextContrast by default
  • we shouldn't provide such option and let the user decide (but it require to have public addClass method

@VincentLanglet VincentLanglet marked this pull request as ready for review June 22, 2025 13:10
@VincentLanglet
Copy link
Contributor Author

Do you mind taking a look @javiereguiluz ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant